package repository

import "github.com/google/wire"

var RepositorySet = wire.NewSet(NewDaoRepository, NewRedisCacheRepository, wire.Struct(new(Repository), "*"))

type Repository struct {
	Dao        *DaoRepository
	RedisCache *RedisCacheRepository
}

func NewDaoRepository() (dao *DaoRepository, err error) {
	return &DaoRepository{}, nil
}

func NewRedisCacheRepository() (cache *RedisCacheRepository, err error) {
	return &RedisCacheRepository{}, nil
}
